<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>添加老师</title>
    <style>
        body { background: #23272e; font-family: 'Microsoft YaHei', Arial, sans-serif; color: #b0b8c1; display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; }
        .container { background: #181a20; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); padding: 40px; width: 400px; }
        h2 { text-align: center; margin-bottom: 30px; color: #fff; }
        .form-group { margin-bottom: 20px; }
        .form-group label { display: block; margin-bottom: 8px; color: #b0b8c1; }
        .form-group input[type="text"],
        .form-group input[type="password"],
        .form-group input[type="email"],
        .form-group input[type="tel"],
        .form-group select {
            width: 100%;
            padding: 10px;
            border: 1px solid #2d313a;
            border-radius: 4px;
            background: #2d313a;
            color: #fff;
            box-sizing: border-box;
        }
        .btn-submit {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 4px;
            background: #43a047;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        .btn-submit:hover {
            background: #5cb85c;
        }
    </style>
</head>
<body>
    <div class="container">
        <h2>添加老师</h2>
        <form action="addTeacher" method="post">
            <div class="form-group">
                <label for="teacherNumber">工号:</label>
                <input type="text" id="teacherNumber" name="teacherNumber" required>
            </div>
            <div class="form-group">
                <label for="username">用户名:</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码:</label>
                <input type="password" id="password" name="password" required>
            </div>
            <div class="form-group">
                <label for="name">姓名:</label>
                <input type="text" id="name" name="name" required>
            </div>
            <div class="form-group">
                <label for="gender">性别:</label>
                <select id="gender" name="gender" required>
                    <option value="">请选择</option>
                    <option value="男">男</option>
                    <option value="女">女</option>
                </select>
            </div>
            <div class="form-group">
                <label for="department">院系:</label>
                <input type="text" id="department" name="department" required>
            </div>
            <div class="form-group">
                <label for="email">邮箱:</label>
                <input type="email" id="email" name="email">
            </div>
            <div class="form-group">
                <label for="phone">电话:</label>
                <input type="tel" id="phone" name="phone">
            </div>
            <button type="submit" class="btn-submit">提交</button>
        </form>
    </div>
</body>
</html> 